package com.authsphere.security.token.common.codec;

/**
 * @program: AuthSphere
 * @description:
 * @author: YuKai Fan
 * @create: 2025/3/26 20:58
 **/
public interface TokenCodec {

    /**
     * token encode
     * @param tokens AccessToken
     * @return this AccessToken encode result
     */
    String encode(String[] tokens);

    /**
     * token decode
     * @param token token
     * @return this token decode result
     */
    String[] decode(String token);
}
